home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / Reference / Tech Tour ß1.0 / Tech Tour fl1.0 / card_23429.txt < prev    next >
Encoding:
Text File  |  1988-03-21  |  2.0 KB  |  91 lines

  1. -- card: 23429 from stack: in.0
  2. -- bmap block id: 20088
  3. -- flags: 0000
  4. -- background id: 2805
  5. -- name: Toolbox Event Manager
  6. ----- HyperTalk script -----
  7. on idle
  8.   get the mouseloc
  9.   put it into line 2 of card field "mouse position"
  10.   get the mouse
  11.   if it is up then
  12.     put "up" into line 2 of card field "mouse button"
  13.   else
  14.     put "down" into line 2 of card field "mouse button"
  15.   end if
  16. end idle
  17.  
  18. on mousedown
  19.   put "down" into line 2 of card field "mouse button"
  20.   pass mousedown
  21. end mousedown
  22.  
  23.  
  24. -- part 1 (field)
  25. -- low flags: 00
  26. -- high flags: 0000
  27. -- rect: left=16 top=42 right=134 bottom=506
  28. -- title width / last selected line: 0
  29. -- icon id / first selected line: 0 / 0
  30. -- text alignment: 0
  31. -- font id: 156
  32. -- text size: 12
  33. -- style flags: 0
  34. -- line height: 16
  35. -- part name: 
  36.  
  37.  
  38. -- part 2 (field)
  39. -- low flags: 00
  40. -- high flags: 0004
  41. -- rect: left=15 top=190 right=230 bottom=156
  42. -- title width / last selected line: 0
  43. -- icon id / first selected line: 0 / 0
  44. -- text alignment: 1
  45. -- font id: 3
  46. -- text size: 12
  47. -- style flags: 256
  48. -- line height: 16
  49. -- part name: mouse position
  50.  
  51.  
  52. -- part 3 (field)
  53. -- low flags: 00
  54. -- high flags: 0004
  55. -- rect: left=15 top=237 right=277 bottom=156
  56. -- title width / last selected line: 0
  57. -- icon id / first selected line: 0 / 0
  58. -- text alignment: 1
  59. -- font id: 3
  60. -- text size: 12
  61. -- style flags: 256
  62. -- line height: 16
  63. -- part name: mouse button
  64.  
  65.  
  66. -- part contents for background part 6
  67. ----- text -----
  68. Toolbox Event Manager
  69.  
  70. -- part contents for card part 1
  71. ----- text -----
  72. The Toolbox Event Manager is the applications's link to the user.  Whenever the user presses the mouse button, types on the keyboard or inserts a disk in the drive, the application is notified by means of an event.  A typical Macintosh application decides what to do from moment to moment by asking the Event Manager for events and responding to them in whatever way is appropriate.  
  73.  
  74. THis
  75.  
  76.  
  77.  
  78. -- part contents for card part 2
  79. ----- text -----
  80. Mouse Location: 
  81. 60,321
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88. -- part contents for card part 3
  89. ----- text -----
  90. Mouse Button:
  91. down